From: Michael Gilbert Date: Sat, 19 Mar 2022 00:48:02 +0000 (+0000) Subject: adjust search paths for addon installers X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~38 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7459d14d84b6c3a8951c57b0ba632a701cc0cf2f;p=wine.git adjust search paths for addon installers forwarded: not-needed Gbp-Pq: Topic debianization Gbp-Pq: Name addons.patch --- diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c index cfc5115..c035e77 100644 --- a/dlls/appwiz.cpl/addons.c +++ b/dlls/appwiz.cpl/addons.c @@ -207,7 +207,7 @@ static enum install_res install_from_dos_file(const WCHAR *dir, const WCHAR *sub lstrcpyW( path, dir ); if (!wcsncmp( path, L"\\??\\", 4 )) path[1] = '\\'; /* change \??\ into \\?\ */ - if (len && path[len-1] != '/' && path[len-1] != '\\') path[len++] = '\\'; + if (len && path[len-1] != '/' && path[len-1] != '\\' && path[len-1] != '-') path[len++] = '\\'; lstrcpyW( path + len, subdir ); lstrcatW( path, L"\\" ); @@ -307,12 +307,14 @@ static enum install_res install_from_default_dir(void) heap_free(dir_buf); } + /* debian's DATADIR already defines the wine subdir */ if (ret == INSTALL_NEXT) - ret = install_from_unix_file(INSTALL_DATADIR "/wine/", addon->subdir_name, addon->file_name); + ret = install_from_unix_file(INSTALL_DATADIR "/", addon->subdir_name, addon->file_name); + + /* also, always search /usr/share/wine/ */ if (ret == INSTALL_NEXT && strcmp(INSTALL_DATADIR, "/usr/share") != 0) ret = install_from_unix_file("/usr/share/wine/", addon->subdir_name, addon->file_name); - if (ret == INSTALL_NEXT) - ret = install_from_unix_file("/opt/wine/", addon->subdir_name, addon->file_name); + return ret; }